/**
 * $Id: Element.java 20 2006-09-16 20:32:08Z willi.w $
 */
package at.wwu.tunes2db.types;

public class Element {

    static Element instance = null;

    String name = null;

    int id = 0;

    boolean isNew = false;

    static int global_id = 0;

    Element(String new_name) {
        this();
        name = new_name;
    }

    Element() {
        id = Element.global_id++;
    }

    public boolean isNew() {
        return isNew;
    }

    public int getId() {
        return id;
    }

    public void setNew(boolean isNew) {
        this.isNew = isNew;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
